package com.cn.why.produce_pro.repository;

import com.cn.why.film.filmindex.entity.PetProduce;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


public interface ProduceDao extends JpaRepository<PetProduce,Integer> {

    @Query(value = "update pet_produce set count=(count - ?1) where id = ?2",nativeQuery = true)
    void updataNuber(Integer number,Integer id);
}
